package com.example.study_manger.repository;



import com.example.study_manger.entity.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface OrganizationRe extends JpaRepository<Organization, Long>, JpaSpecificationExecutor<Organization> {
    @Query("select o from Organization o where o.id = ?1")
    Organization findOrganizationById(String organizationId);

    Organization findByName(String name);
}
